import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/home/home.vue'
import Cart from '../views/home/cart.vue'
import Cla from '../views/home/cla.vue'
import Index from '../views/home/index.vue'
import My from '../views/home/my.vue'
import Ss from '../views/home/ss.vue'



const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path: '/',redirect: '/home/cart',},
    {path: '/home',component: Home,
      children:[
        {path: 'cart',component: Cart,},
        {path: 'cla',component: Cla,},
        {path: 'index',component: Index,},
        {path: 'my',component: My,},
      ]
    },
    {path: '/ss',component: Ss,},
  ],
})

export default router
